package io.jee.medusa.orm.pager;

import java.util.List;

public class Pager<T> {
	private Integer pagenum = 1;
	private Integer pagesize = 10;
	private Integer upage;
	private Integer first = 1;
	private Integer next;
	private Integer last;
	private Integer totalpage = 1;
	private Integer totalrecord = 0;
	private List<T> datas;

	public Pager() {
	}

	public Pager(int pagenum, int pageSize) {
		this.pagenum = pagenum;
		this.pagesize = pageSize;
	}

	public Integer getPagenum() {
		return pagenum;
	}

	public void setPagenum(Integer pagenum) {
		this.pagenum = pagenum;
	}

	public Integer getPagesize() {
		return pagesize;
	}

	public void setPagesize(Integer pagesize) {
		this.pagesize = pagesize;
	}

	public List<T> getDatas() {
		return datas;
	}

	public void setDatas(List<T> datas) {
		this.datas = datas;
	}

	public Integer getTotalpage() {
		return totalpage;
	}

	public void setTotalpage(Integer totalpage) {
		this.totalpage = totalpage;
	}

	public Integer getTotalrecord() {
		return totalrecord;
	}

	public void setTotalrecord(Integer totalrecord) {
		this.totalrecord = totalrecord;
	}

	public Integer getUpage() {
		return upage;
	}

	public void setUpage(Integer upage) {
		this.upage = upage;
	}

	public Integer getFirst() {
		return first;
	}

	public void setFirst(Integer first) {
		this.first = first;
	}

	public Integer getNext() {
		return next;
	}

	public void setNext(Integer next) {
		this.next = next;
	}

	public Integer getLast() {
		return last;
	}

	public void setLast(Integer last) {
		this.last = last;
	}

}
